﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdmDevicePreserve.aspx.cs"
    Inherits="LMS.SMSH.WEB.AdmDevicePreserve" %>

<html>
<head id="Head1" runat="server">
    <title>高校实验室网站后台管理</title>
    <style type="text/css">
        .box-3
        {
            border: 1px solid #cccccc;
        }
    </style>
    <script type="text/javascript" src="jQuery/jquery-1.7.1.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#Reset1").click(function () {
                $("#txtdevName").val("");
                $("#txtdevId").val("");
                $("#txtVender").val("");
                $("#txtBuysDate").val("");
                $("#txtCost").val("");
                $("#txtStatus").val("");
                $("#txtAtachmentNumber").val("");
            })
        })
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div align="center">
        <table width="700" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
            <tr>
                <td height="60" bgcolor="#FFFFFF">
                    &nbsp;&nbsp;<strong>设备信息编辑</strong>
                </td>
            </tr>
            <tr>
                <td>
                    <table width="700" border="0" cellspacing="1" cellpadding="0">
                        <tr>
                            <td style="width:200; height:30; text-align:right; background-color:#FFFFFF">
                                <font color="#FF0000" size="2">*&nbsp;</font><font size="2">设备名称</font>
                            </td>
                            <td width="500" height="30" bgcolor="#FFFFFF">
                                &nbsp;<asp:TextBox ID="txtdevName" runat="server" CssClass="box-3" Width="90%" MaxLength="50"></asp:TextBox>
                                <br />
                                &nbsp;&nbsp;
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtdevName"
                                    Display="Dynamic" ErrorMessage="设备名称不能为空" ForeColor="#AA11FF"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" bgcolor="#ffffff" height="30" width="200">
                                <font size="2">设备号</font>
                            </td>
                            <td bgcolor="#ffffff" height="30" width="500">
                                &nbsp;<asp:TextBox ID="txtdevId" runat="server" CssClass="box-3" MaxLength="50" Width="90%"></asp:TextBox>
                                <br />
                                &nbsp;&nbsp;
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtdevId"
                                    ErrorMessage="设备号不能为空" ForeColor="#AA11FF" Display="Dynamic"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td width="200" height="30" align="right" bgcolor="#FFFFFF">
                                <font size="2">制造厂家</font>
                            </td>
                            <td width="500" height="30" bgcolor="#FFFFFF">
                                &nbsp;<asp:TextBox ID="txtVender" runat="server" CssClass="box-3" MaxLength="50"
                                    Width="90%"></asp:TextBox>
                                <br />
                                &nbsp;&nbsp;
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtVender"
                                    ErrorMessage="制造厂家不能为空" ForeColor="#AA11FF" Display="Dynamic"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" bgcolor="#ffffff" height="30">
                                <font size="2"><span style="color: #ff0000">* <font size="2"></font></span>购买日期</font>
                            </td>
                            <td bgcolor="#ffffff" height="30">
                                &nbsp;<asp:TextBox ID="txtBuysDate" runat="server" CssClass="box-3" MaxLength="50"
                                    Width="90%"></asp:TextBox>
                                <br />
                                &nbsp;&nbsp;
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtBuysDate"
                                    ErrorMessage="购买日期不能为空" ForeColor="#AA11FF"></asp:RequiredFieldValidator>
                                <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtBuysDate"
                                    Display="Dynamic" ErrorMessage="购买日期格式必须为2000-1-1这种形式" MaximumValue="3000-1-1"
                                    MinimumValue="1900-1-1" Type="Date" ForeColor="#AA11FF">购买日期格式必须为2000-1-1这种形式</asp:RangeValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" bgcolor="#ffffff" height="30">
                                <font size="2"><span style="color: #ff0000">* <font size="2"></font></span>购买价格</font>
                            </td>
                            <td bgcolor="#ffffff" height="30">
                                &nbsp;<asp:TextBox ID="txtCost" runat="server" CssClass="box-3" MaxLength="50" Width="90%"></asp:TextBox>
                                <br />
                                &nbsp;&nbsp;
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtCost"
                                    Display="Dynamic" ErrorMessage="购买价格为空" ForeColor="#AA11FF"></asp:RequiredFieldValidator>
                                <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="txtCost"
                                    Display="Dynamic" ErrorMessage="购买价格不能必须为数值" MaximumValue="1000000" MinimumValue="0"
                                    Type="Double" ForeColor="#AA11FF"></asp:RangeValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" bgcolor="#ffffff" height="30">
                                <font size="2">现状</font>
                            </td>
                            <td bgcolor="#ffffff" height="30">
                                &nbsp;<asp:TextBox ID="txtStatus" runat="server" CssClass="box-3" MaxLength="50"
                                    Width="90%"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" bgcolor="#ffffff" height="30">
                                <font size="2"><span style="color: #ff0000">* <font size="2"></font></span>附件数量</font>
                            </td>
                            <td bgcolor="#ffffff" height="30">
                                &nbsp;<asp:TextBox ID="txtAtachmentNumber" runat="server" CssClass="box-3" MaxLength="50"
                                    Width="90%"></asp:TextBox>
                                <br />
                                &nbsp;&nbsp;
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtAtachmentNumber"
                                    Display="Dynamic" ErrorMessage="附件数量不能为空" ForeColor="#AA11FF"></asp:RequiredFieldValidator>
                                <asp:RangeValidator ID="RangeValidator4" runat="server" ControlToValidate="txtAtachmentNumber"
                                    Display="Dynamic" ErrorMessage="附件数量必须为数值" MaximumValue="1000000" MinimumValue="0"
                                    Type="Integer" ForeColor="#AA11FF"></asp:RangeValidator>
                            </td>
                        </tr>
                        <tr>
                            <td height="30" colspan="2" align="center" bgcolor="#FFFFFF">
                                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                                    ShowSummary="False" Enabled="False" />
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td height="30" colspan="2" align="center" bgcolor="#FFFFFF">
                                <asp:Button ID="btnOK" runat="server" Text="保存提交" OnClick="btnOK_Click" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <input id="Reset1" type="reset" value="重新填写" />
                                <input id="hidMachineryID" type="hidden" runat="server" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
